//
//  HeaderCollectionReusableView.m
//  CatMusic
//
//  Created by dllo on 15/4/22.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "HeaderCollectionReusableView.h"

@implementation HeaderCollectionReusableView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.headerLabel = [[UILabel alloc] init];
        self.headerLabel.font = [UIFont systemFontOfSize:20];
        [self addSubview:self.headerLabel];
        
            }
    return self;
}

- (void)setHeaderLabelText:(NSString *)headerLabelText
{
    self.headerLabel.text = headerLabelText;
    self.headerLabel.textColor = [UIColor colorWithRed:arc4random() %256 / 255.0 green:arc4random() %256 / 255.0 blue:arc4random() %256 / 255.0 alpha:1];
    [self.headerLabel sizeToFit];
}

@end
